package model

import "time"

type User struct {
	BaseModel
	Mobile   string     `gorm:"index:idx_mobile;unique;type:varchar(11) comment '用户手机号';not null"`
	Password string     `gorm:"type:varchar(100) comment '用户密码';not null"`
	Nickname string     `gorm:"type:varchar(20) comment '用户昵称'"`
	Birthday *time.Time `gorm:"type:datetime comment '用户生日'"`
	Gender   string     `gorm:"column:gender;default:male;type:varchar(6) comment 'female表示女,male表示男'"`
	Role     int        `gorm:"column:role;default:1;type:int comment '1表示普通用户,2表示管理员用户'"`
}
